package com.jingdong.service.order.impl;

import com.jingdong.dao.order.OrderDao;
import com.jingdong.dao.order.impl.OrderDaoImpl;
import com.jingdong.model.Order_info;
import com.jingdong.service.order.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao orderDao;

    @Override
    public int save(Order_info order) {
        return orderDao.save(order);
    }

    @Override
    public Order_info getById(int id) {
        return orderDao.getById(id);
    }

    @Override
    public int update(Order_info order) {
        return orderDao.update(order);
    }

    @Override
    public List<Order_info> list(Map<String,Integer> map) {
        return orderDao.list(map);
    }

    @Override
    public List<Order_info> orderTaskList(int status) {
        return orderDao.orderTaskList(status);
    }
}
